<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/jquery-1.11.3.js"></script>
    <script src="js/jquery.select.js"></script>
    <style>
        ul,li {margin: 0;padding: 0;list-style: none;}
        .box-defaut-ul li:hover {background-color: blue;color: white;}
        .cityBox {background-color: white;position: absolute;border: 1px solid blue;width: 300px;}
        .cityBox li {width: 100px;float: left;cursor: pointer;}
        .cityBox li:hover{}
        .jobBox {background-color: white;position: absolute;border: 1px solid blue;width: 200px;}
        .jobBox li {width: 200px;cursor: pointer;}

    </style>
</head>
<body>
<div>
    <input type="text" id="city">
</div>
<div>
    <input type="text" id="job">
</div>

<script>
    var citys = [
        {cityId:1,cityName:'合肥'},
        {cityId:2,cityName:'芜湖'},
        {cityId:3,cityName:'马鞍山'},
        {cityId:4,cityName:'铜陵'},
        {cityId:5,cityName:'蚌埠'},
        {cityId:6,cityName:'阜阳'},
        {cityId:7,cityName:'淮北'},
        {cityId:8,cityName:'宿州'},
        {cityId:9,cityName:'滁州'},
        {cityId:10,cityName:'宣城'},
        {cityId:11,cityName:'安庆'},
        {cityId:12,cityName:'黄山'},
        {cityId:13,cityName:'淮南'},
        {cityId:14,cityName:'六安'},
    ];
    $('#city').focus(function(){
        $('#city').mySelectBox(citys,{k:'cityId',v:'cityName',boxClass:'cityBox'});
    });
    var jobs = [
        {jobId:1,jobName:'PHP'},
        {jobId:2,jobName:'Web'},
        {jobId:3,jobName:'UI'},
        {jobId:4,jobName:'Java'}
    ];
    $('#job').focus(function(){
        $('#job').mySelectBox(jobs,{k:'jobId',v:'jobName',boxClass:'jobBox'});
    });

</script>
</body>
</html>